home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / graphics / misc / imagedesk / installid < prev    next >
Text File  |  1995-04-12  |  8KB  |  325 lines

  1. ; Install script for ImageDesk (Workbench 3.0 or higher)
  2.  
  3. (set @default-dest "work:ImageDesk")
  4. (set #CDir "C:")
  5. (set #KeyPath "S:")
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "I'm sorry. ImageDesk needs Amiga-OS 3.0 or higher")
  13.  
  14. (set #install-msg
  15.     (cat
  16.      "\n\nImageDesk installation script.\n"
  17.      "Please read 'ImageDesk.guide' after this installation.\n"
  18.      "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  19.      "All rights reserved."
  20.     )
  21. )
  22.  
  23. (set #Proc-msg
  24.     (cat "Please choose one of the both program versions\n"
  25.          "which are listed below. The MC68020 version\n"
  26.          "should run on 030 and 040 machines too."
  27.     )
  28. )
  29.  
  30. (set #Wicon-msg "Which kind of icons do you prefer?")
  31.  
  32. (set #Exit-msg
  33.     (cat "ImageDesk now has been installed.\n"
  34.          "If You wanna have JPEG support, You have to\n"
  35.          "install the 'Tower JPEG Codec', too.\n"
  36.          "You will find it in the directory 'JPEG Codec'."
  37.     )
  38. )
  39.  
  40.  
  41. (set #Copy020Msg "Copying 68020 version...")
  42. (set #Copy000Msg "Copying 68000 version...")
  43. (set #AskDirMsg  "Please select a directory\nto install ImageDesk in")
  44. (set #CopyComMsg "These are a few useful tools.\nDo You want to intstall them?")
  45. (set #CopyKeyMsg "Installing keyfile...")
  46. (set #DontCopyMSg "I'm going to install Your keyfile.\nDon't give it away, it includes some\nof Your personal data!")
  47.  
  48. (set #AskCatMsg "Do You want to install some Catalog examples?")
  49. (set #PosMsg "Yes")
  50. (set #NegMsg "No")
  51. (set #CopyCatMsg "Copy these files?")
  52. (set #CopyICONMsg "Working on default project icon")
  53. (set #ToolTypeMsg "Setting icon attributes")
  54. (set #AskRexxMsg "Do You want to install some AREXX example scripts?")
  55.  
  56. ;=============================================================================
  57. ; German strings
  58.  
  59. (if   (= @language "deutsch")
  60. (
  61.     (set default_lang 2)
  62.  
  63.     (set #bad-kick "Zu dumm! ImageDesk benötigt leider Amiga-OS 3.0 oder höher")
  64.  
  65.     (set #install-msg
  66.         (cat "\n\nImageDesk Installationsskript.\n"
  67.              "Nach dieser Installationsprozedur sollten\n"
  68.              "Sie unbedingt 'ImageDesk.guide' lesen.\n"
  69.              "ImageDesk ©1994-1995 Reinhard Haslbeck\n"
  70.              "All rights reserved."
  71.         )
  72.     )
  73.  
  74.     (set #Proc-msg
  75.         (cat "Wählen Sie bitte welche der beiden untenstehenden\n"
  76.              "Programmversionen installiert werden soll.\n"
  77.              "MC68020 sollte auch auf 030 und 040 Maschinen laufen."
  78.         )
  79.     )
  80.  
  81.     (set #Wicon-msg "Wählen Sie welche Icons\ninstalliert werden sollen.")
  82.  
  83.     (set #Exit-msg
  84.         (cat "ImageDesk ist nun installiert.\n"
  85.              "Wenn Sie JPEG Unterstützung haben wollen, müssen\n"
  86.              "Sie den 'Tower JPEG Codec', ebenfalls installieren.\n"
  87.              "Er befindet sich im Verzeichnis 'JPEG Codec'."
  88.         )
  89.     )
  90.  
  91.  
  92.  
  93.     (set #Copy020Msg "Kopiere 68020 Version...")
  94.     (set #Copy000Msg "Kopiere 68000 Version...")
  95.     (set #AskDirMsg  "Wählen Sie bitte ein Verzeichnis in-\ndem Imagedesk Installiert werden soll")
  96.     (set #CopyComMsg "Dies sind einige nützliche Tools.\nSollen sie installiert werden?")
  97.     (set #CopyKeyMsg "Installiere Keyfile...")
  98.     (set #DontCopyMSg "Es wird nun das Keyfile kopiert. Geben\nSie es keinesfalls weiter, es sind einige\nIhrer persönlichen Daten darin enthalten!")
  99.     (set #AskCatMsg "Sollen einige Catalog Beispiele installiert werden?")
  100.     (set #PosMsg "Ja")
  101.     (set #NegMsg "Nein")
  102.     (set #CopyCatMsg "Diese Dateien Kopieren?")
  103.     (set #CopyICONMsg "Arbeite am default project icon")
  104.     (set #ToolTypeMsg "Setze Icon-Attribute")
  105.     (set #AskRexxMsg "Sollen einige AREXX Beispiele installiert werden?")
  106.  
  107.  
  108. ))
  109. ;=============================================================================
  110. ; make sure we are running under a 3.0 OS
  111.  
  112. (if (< (/ (getversion) 65536) 39)
  113. (
  114.     (abort #bad-kick)
  115. ))
  116.  
  117. ;=============================================================================
  118.  
  119. (message #install-msg)
  120.  
  121. (set ProcVers (askchoice
  122.                         (prompt #Proc-msg)
  123.                         (help @askchoice-help)
  124.                         (choices "MC68020" "MC68000")
  125.               )
  126. )
  127.  
  128. (set WhichIcons (askchoice
  129.                         (prompt #Wicon-msg)
  130.                         (help @askchoice-help)
  131.                         (choices "Standard" "MagicWB-Style")
  132.                 )
  133. )
  134.  
  135.  
  136. (set @default-dest (askdir
  137.                        (prompt #AskDirMsg)
  138.                        (help @askdir-help)
  139.                        (default @default-dest)
  140.                    )
  141. )
  142. (complete 10)
  143.  
  144. ;====== copy english stuff ======
  145. (if (= default_lang 4)
  146. (
  147.     (copyfiles
  148.         (prompt "Copying guide file...")
  149.         (help @copyfiles-help)
  150.         (source "ImageDeskE.guide")
  151.         (dest @default-dest)
  152.         (newname "ImageDesk.guide")
  153.         (infos)
  154.         (confirm)
  155.     )
  156.  
  157.     (if (exists "OrderForm")
  158.     (
  159.         (copyfiles
  160.             (prompt "Copying OrderForm file...")
  161.             (help @copyfiles-help)
  162.             (source "OrderForm")
  163.             (dest @default-dest)
  164.             (newname "OrderForm")
  165.             (infos)
  166.             (confirm)
  167.         )
  168.     ))
  169. ))
  170.  
  171. ;====== copy German stuff ======
  172. (if (= default_lang 2)
  173. (
  174.     (copyfiles
  175.         (prompt "Kopiere guide Datei...")
  176.         (help @copyfiles-help)
  177.         (source "ImageDeskD.guide")
  178.         (dest @default-dest)
  179.         (newname "ImageDesk.guide")
  180.         (infos)
  181.         (confirm)
  182.     )
  183.  
  184.     (if (exists "Bestellformular")
  185.     (
  186.         (copyfiles
  187.             (prompt "Kopiere Bestellformular...")
  188.             (help @copyfiles-help)
  189.             (source "Bestellformular")
  190.             (dest @default-dest)
  191.             (newname "Bestellformular")
  192.             (infos)
  193.             (confirm)
  194.         )
  195.     ))
  196. ))
  197. (complete 30)
  198.  
  199. ;====== install 68020 version =====
  200. (if (= ProcVers 0)
  201. ;then
  202.     (copyfiles
  203.         (prompt #Copy020Msg)
  204.         (help @copyfiles-help)
  205.         (source "ImageDesk.020")
  206.         (dest @default-dest)
  207.         (newname "ImageDesk")
  208.         (infos)
  209.         (confirm)
  210.     )
  211. ;)
  212. ;====== install 68000 version =====
  213. ;else
  214.     (copyfiles
  215.         (prompt #Copy000Msg)
  216.         (help @copyfiles-help)
  217.         (source "ImageDesk.000")
  218.         (dest @default-dest)
  219.         (newname "ImageDesk")
  220.         (infos)
  221.         (confirm)
  222.     )
  223. )
  224. (complete 40)
  225.  
  226. ;== install default project icon ==
  227. (if (= WhichIcons 0)
  228. ;then Standard Icons
  229.     (copyfiles
  230.         (prompt #CopyICONMsg)
  231.         (help @copyfiles-help)
  232.         (source "ID_DefProjIcon.info")
  233.         (dest @default-dest)
  234.         (newname "ID_DefProjIcon.info")
  235.         (confirm)
  236.     )
  237. ;else MagicWBIcons
  238.     (
  239.     (copyfiles
  240.         (prompt #CopyICONMsg)
  241.         (help @copyfiles-help)
  242.         (source "ID_DefProjIconMWB.info")
  243.         (dest @default-dest)
  244.         (newname "ID_DefProjIcon.info")
  245.         (confirm)
  246.     )
  247.     (copyfiles
  248.         (prompt #CopyICONMsg)
  249.         (help @copyfiles-help)
  250.         (source "ImageDeskMWB.info")
  251.         (dest @default-dest)
  252.         (newname "ImageDesk.info")
  253.         (confirm)
  254.     )
  255.     )
  256. )
  257. (tooltype
  258.     (prompt #ToolTypeMsg)
  259.     (help @tooltype-help)
  260.     (dest (tackon @default-dest "ID_DefProjIcon"))
  261.     (setdefaulttool (tackon @default-dest "ImageDesk"))
  262.     (confirm)
  263. )
  264. (complete 50)
  265.  
  266. ;====== install Catalog tools =====
  267. (copyfiles
  268.     (prompt #CopyComMsg)
  269.     (help @copyfiles-help)
  270.     (source "c/")
  271.     (dest #CDir)
  272.     (all)
  273.     (confirm 1)
  274. )
  275. (complete 70)
  276.  
  277. ;====== Copy example Catalogs =====
  278. (if (askbool (prompt #AskCatMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  279. (
  280.     (copyfiles
  281.         (prompt #CopyCatMsg)
  282.         (help @copyfiles-help)
  283.         (source "example/")
  284.         (dest (tackon @default-dest "example"))
  285.         (all)
  286.         (confirm 1)
  287.     )
  288. ))
  289. (complete 80)
  290.  
  291. ;====== Copy rexx Scripts =====
  292. (if (askbool (prompt #AskRexxMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
  293. (
  294.     (copyfiles
  295.         (prompt #CopyCatMsg)
  296.         (help @copyfiles-help)
  297.         (source "rexx/")
  298.         (dest (tackon @default-dest "rexx"))
  299.         (all)
  300.         (confirm 1)
  301.     )
  302. ))
  303. (complete 90)
  304.  
  305. ;====== install keyfile ========
  306. (if (= (run "GetEnv KEYPATH") 0)
  307. (
  308.  (set #KeyPath (getenv "KEYPATH"))
  309. )
  310. )
  311. (if (exists "s/ImageDesk.Key")
  312. (
  313.     (message #DontCopyMsg)
  314.     (copyfiles
  315.         (prompt #CopyKeyMsg)
  316.         (help @copyfiles-help)
  317.         (source "s/ImageDesk.Key")
  318.         (dest #KeyPath)
  319.         (newname "ImageDesk.Key")
  320.     )
  321. )
  322. )
  323. (message #exit-msg)
  324. (complete 100)
  325.